<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="layout" content="wechat"/>
    <title>免费评房</title>
</head>

<body>
<header class="create-header">
    <ul class="creat-flowList flex-box">
        <li data-id="01" class="flex1 active">
            <span></span>

            <h3>小区信息</h3>
        </li>
        <li data-id="02" class="flex1 active">
            <span></span>

            <h3>房产信息</h3>
        </li>
        <li data-id="03" class="flex1 active">
            <span></span>

            <h3>极速询值</h3>
        </li>
    </ul>
</header>

<form resource="${this.house}">

    %{--正常出值--}%
    <g:if test="${this.house?.status == 'Completed'}">
        <div class="bgcWhite asset-valuation">
            <div class="valuation-info">

                <h3>
                    <span>押品评估单价：</span>
                    <span class="colorRed">
                    <g:formatNumber number="${this.house?.unitPrice}" type="number" maxFractionDigits="2" />
                  </span>
                    <span>元&nbsp;/&nbsp;m<sup>2</sup></span>
                </h3>
                <h3>
                    <span>押品评估总价：</span>
                    <span class="colorRed">
                      <g:formatNumber number="${this.house?.totalPrice/10000}" minFractionDigits="2" maxFractionDigits="4" format="###,###.##"/></span>
                    <span>万元</span>
                </h3>
                <h3 class="text-center">
                  <span>您在我行最高可贷金额:</span>
                    <span class="text-center colorRed">¥<span><g:formatNumber number="${this.house?.totalPrice/10000*0.7}" type="number" maxFractionDigits="0" /></span>万</span>
                </h3>


            </div>


            <div class="bigBtn">
              <g:link action="wxCreate3Step1" class="linkBtn weui-btn weui-btn_primary" params="[code: null, stage: null, opportunityId: this.house?.opportunity?.id]">申请贷款</g:link>

              <!-- <a href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx759dbfa790cfd63b&redirect_uri=http%3A%2F%2Flms.cindata.cn%2FwechatOpportunity%2FwxCreate2Step1&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect"
                 class="linkBtn2 weui-btn weui-btn_primary">评估新押品</a> -->
            </div>

            <div class="bigBtn" style="margin-bottom: 0;">
              <a href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx759dbfa790cfd63b&redirect_uri=http%3A%2F%2Flms.cindata.cn%2FwechatOpportunity%2FwxCreate2Step1&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect"
                 class="linkBtn2 weui-btn weui-btn_primary">评估新押品</a>
               <!-- <a href="/wechatOpportunity/wxCreate2Step1"
                  class="linkBtn2 weui-btn weui-btn_primary">评估新押品</a> -->
            </div>
        </div>
    </g:if>
</form>


<script>
    $(function () {
        $(".linkBtn").click(function () {
            $(this).addClass("active");
        });
        $(".linkBtn2").click(function () {
            $(this).addClass("active");
        });

        //阻止冒泡
        $("#reportBill-benefit").click(function (event) {
            if (!$("#reportBill-benefit").hasClass("hide")) {
                event.stopPropagation();
            }
        });
    });
</script>
</body>
</html>
